/*  template openCL kernel for the
 *  code generator
 */

__kernel void solver(__global double * retv
                     __global double * size
                     __global double * offset)
{
    __local double accumulator;
    *retv += mycalc(get_global_id(0), offset, size);
}

//this function will be finished by the code generator
inline double mycalc(const int itteration, double offset, double size){
    double x = ((double) itteration / size) + offset;
